package com.qmctl.rest.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qmctl.rest.bean.selldeliveryorder.DeliveryOrderClazz;
import com.qmctl.rest.bean.selldeliveryorder.DeliveryRequirementsClazz;
import com.qmctl.rest.bean.selldeliveryorder.InsuranceClazz;
import com.qmctl.rest.bean.selldeliveryorder.SellDeliveryOrder;

import java.io.Serializable;
@SuppressWarnings("serial")
@Entity
@Table(name="tSellDeliveryOrderInfo",schema="")
public class SellDeliveryOrderInfo implements Serializable{
	  @Id
	  private String deliveryOrderId;
	  private String deliveryOrderCode;
	  private String preDeliveryOrderCode;
	  private String preDeliveryOrderId;
	  private String orderType;
	  private String warehouseCode;
	  private String orderFlag;
	  private String status;
	  private String destination;
	  private String outBizCode;
	  private long confirmType;
	  private String orderConfirmTime;
	  private String sourcePlatformCode;
	  private String sourcePlatformName;
	  private String createTime;
	  private String placeOrderTime;
	  private String payTime;
	  private String payNo;
	  private String operatorCode;
	  private String operatorName;
	  private String operateTime;
	  private String shopNick;
	  private String sellerNick;
	  private String buyerNick;
	  private double totalAmount;
	  private double itemAmount;
	  private double discountAmount;
	  private double freight;
	  private double arAmount;
	  private double gotAmount;
	  private double serviceFee;
	  private String logisticsCode;
	  private String logisticsName;
	  private String expressCode;
	  private String logisticsAreaCode;
	  private long scheduleType;
	  private String scheduleDay;
	  private String scheduleStartTime;
	  private String scheduleEndTime;
	  private String deliveryType;
	  private String senderInfoId;
	  private String receiverInfoId;
	  private String invoiceInfoId;
	  private String insuranceFlag;
	  private String sendFlag;
	  private String type;
	  private double amount;
	  private String buyerMessage;
	  private String sellerMessage;
	  private String remark;
  public SellDeliveryOrderInfo(){
  }
  public SellDeliveryOrderInfo(DeliveryOrderClazz BeanClazz,DeliveryRequirementsClazz deliveryRequirementsClazz,InsuranceClazz insuranceClazz){
    deliveryOrderCode = BeanClazz.getDeliveryOrderCode();
    preDeliveryOrderCode = BeanClazz.getPreDeliveryOrderCode();
    preDeliveryOrderId = BeanClazz.getPreDeliveryOrderId();
    orderType = BeanClazz.getOrderType();
    warehouseCode = BeanClazz.getWarehouseCode();
    orderFlag = BeanClazz.getOrderFlag();
    sourcePlatformCode = BeanClazz.getSourcePlatformCode();
    sourcePlatformName = BeanClazz.getSourcePlatformName();
    createTime = BeanClazz.getCreateTime();
    placeOrderTime = BeanClazz.getPlaceOrderTime();
    payTime = BeanClazz.getPayTime();
    payNo = BeanClazz.getPayNo();
    operatorCode = BeanClazz.getOperatorCode();
    operatorName = BeanClazz.getOperatorName();
    operateTime = BeanClazz.getOperateTime();
    shopNick = BeanClazz.getShopNick();
    sellerNick = BeanClazz.getSellerNick();
    buyerNick = BeanClazz.getBuyerNick();
    totalAmount = BeanClazz.getTotalAmount();
    itemAmount = BeanClazz.getItemAmount();
    discountAmount = BeanClazz.getDiscountAmount();
    freight = BeanClazz.getFreight();
    arAmount = BeanClazz.getArAmount();
    gotAmount = BeanClazz.getGotAmount();
    serviceFee = BeanClazz.getServiceFee();
    logisticsCode = BeanClazz.getLogisticsCode();
    logisticsName = BeanClazz.getLogisticsName();
    expressCode = BeanClazz.getExpressCode();
    logisticsAreaCode = BeanClazz.getLogisticsAreaCode();
    scheduleType = (Long) (deliveryRequirementsClazz==null?0:deliveryRequirementsClazz.getScheduleType());
    scheduleDay = deliveryRequirementsClazz==null?"":deliveryRequirementsClazz.getScheduleDay();
    scheduleStartTime = deliveryRequirementsClazz==null?"":deliveryRequirementsClazz.getScheduleStartTime();
    scheduleEndTime = deliveryRequirementsClazz==null?"":deliveryRequirementsClazz.getScheduleEndTime();
    deliveryType = deliveryRequirementsClazz==null?"":deliveryRequirementsClazz.getDeliveryType();
    senderInfoId = "";
    receiverInfoId = "";
    invoiceInfoId = "";
    insuranceFlag = BeanClazz.getInsuranceFlag();
    sendFlag = "No";
    type = insuranceClazz==null?"":insuranceClazz.getType();
    amount = insuranceClazz==null?0:(long) insuranceClazz.getAmount();
    buyerMessage = BeanClazz.getBuyerMessage();
    sellerMessage = BeanClazz.getSellerMessage();
    remark = BeanClazz.getRemark();
  }
  public String getDeliveryOrderCode(){
    return deliveryOrderCode;
  }
  public void setDeliveryOrderCode(String sDeliveryOrderCode){
    deliveryOrderCode = sDeliveryOrderCode;
  }
  public String getPreDeliveryOrderCode(){
    return preDeliveryOrderCode;
  }
  public void setPreDeliveryOrderCode(String sPreDeliveryOrderCode){
    preDeliveryOrderCode = sPreDeliveryOrderCode;
  }
  public String getPreDeliveryOrderId(){
    return preDeliveryOrderId;
  }
  public void setPreDeliveryOrderId(String sPreDeliveryOrderId){
    preDeliveryOrderId = sPreDeliveryOrderId;
  }
  public String getOrderType(){
    return orderType;
  }
  public void setOrderType(String sOrderType){
    orderType = sOrderType;
  }
  public String getWarehouseCode(){
    return warehouseCode;
  }
  public void setWarehouseCode(String sWarehouseCode){
    warehouseCode = sWarehouseCode;
  }
  public String getOrderFlag(){
    return orderFlag;
  }
  public void setOrderFlag(String sOrderFlag){
    orderFlag = sOrderFlag;
  }
  public String getSourcePlatformCode(){
    return sourcePlatformCode;
  }
  public void setSourcePlatformCode(String sSourcePlatformCode){
    sourcePlatformCode = sSourcePlatformCode;
  }
  public String getSourcePlatformName(){
    return sourcePlatformName;
  }
  public void setSourcePlatformName(String sSourcePlatformName){
    sourcePlatformName = sSourcePlatformName;
  }
  public String getCreateTime(){
    return createTime;
  }
  public void setCreateTime(String sCreateTime){
    createTime = sCreateTime;
  }
  public String getPlaceOrderTime(){
    return placeOrderTime;
  }
  public void setPlaceOrderTime(String sPlaceOrderTime){
    placeOrderTime = sPlaceOrderTime;
  }
  public String getPayTime(){
    return payTime;
  }
  public void setPayTime(String sPayTime){
    payTime = sPayTime;
  }
  public String getPayNo(){
    return payNo;
  }
  public void setPayNo(String sPayNo){
    payNo = sPayNo;
  }
  public String getOperatorCode(){
    return operatorCode;
  }
  public void setOperatorCode(String sOperatorCode){
    operatorCode = sOperatorCode;
  }
  public String getOperatorName(){
    return operatorName;
  }
  public void setOperatorName(String sOperatorName){
    operatorName = sOperatorName;
  }
  public String getOperateTime(){
    return operateTime;
  }
  public void setOperateTime(String sOperateTime){
    operateTime = sOperateTime;
  }
  public String getShopNick(){
    return shopNick;
  }
  public void setShopNick(String sShopNick){
    shopNick = sShopNick;
  }
  public String getSellerNick(){
    return sellerNick;
  }
  public void setSellerNick(String sSellerNick){
    sellerNick = sSellerNick;
  }
  public String getBuyerNick(){
    return buyerNick;
  }
  public void setBuyerNick(String sBuyerNick){
    buyerNick = sBuyerNick;
  }
  public double getTotalAmount(){
    return totalAmount;
}
  public void setTotalAmount(double dTotalAmount){
    totalAmount = dTotalAmount;
  }
  public double getItemAmount(){
    return itemAmount;
}
  public void setItemAmount(double dItemAmount){
    itemAmount = dItemAmount;
  }
  public double getDiscountAmount(){
    return discountAmount;
}
  public void setDiscountAmount(double dDiscountAmount){
    discountAmount = dDiscountAmount;
  }
  public double getFreight(){
    return freight;
}
  public void setFreight(double dFreight){
    freight = dFreight;
  }
  public double getArAmount(){
    return arAmount;
}
  public void setArAmount(double dArAmount){
    arAmount = dArAmount;
  }
  public double getGotAmount(){
    return gotAmount;
}
  public void setGotAmount(double dGotAmount){
    gotAmount = dGotAmount;
  }
  public double getServiceFee(){
    return serviceFee;
}
  public void setServiceFee(double dServiceFee){
    serviceFee = dServiceFee;
  }
  public String getLogisticsCode(){
    return logisticsCode;
  }
  public void setLogisticsCode(String sLogisticsCode){
    logisticsCode = sLogisticsCode;
  }
  public String getLogisticsName(){
    return logisticsName;
  }
  public void setLogisticsName(String sLogisticsName){
    logisticsName = sLogisticsName;
  }
  public String getExpressCode(){
    return expressCode;
  }
  public void setExpressCode(String sExpressCode){
    expressCode = sExpressCode;
  }
  public String getLogisticsAreaCode(){
    return logisticsAreaCode;
  }
  public void setLogisticsAreaCode(String sLogisticsAreaCode){
    logisticsAreaCode = sLogisticsAreaCode;
  }
  public long getScheduleType(){
    return scheduleType;
  }
  public void setScheduleType(long iScheduleType){
    scheduleType= iScheduleType;
  }
  public String getScheduleDay(){
    return scheduleDay;
  }
  public void setScheduleDay(String sScheduleDay){
    scheduleDay = sScheduleDay;
  }
  public String getScheduleStartTime(){
    return scheduleStartTime;
  }
  public void setScheduleStartTime(String sScheduleStartTime){
    scheduleStartTime = sScheduleStartTime;
  }
  public String getScheduleEndTime(){
    return scheduleEndTime;
  }
  public void setScheduleEndTime(String sScheduleEndTime){
    scheduleEndTime = sScheduleEndTime;
  }
  public String getDeliveryType(){
    return deliveryType;
  }
  public void setDeliveryType(String sDeliveryType){
    deliveryType = sDeliveryType;
  }
  public String getSenderInfoId(){
    return senderInfoId;
  }
  public void setSenderInfoId(String sSenderInfoId){
    senderInfoId = sSenderInfoId;
  }
  public String getReceiverInfoId(){
    return receiverInfoId;
  }
  public void setReceiverInfoId(String sReceiverInfoId){
    receiverInfoId = sReceiverInfoId;
  }
  public String getInvoiceInfoId(){
    return invoiceInfoId;
  }
  public void setInvoiceInfoId(String sInvoiceInfoId){
    invoiceInfoId = sInvoiceInfoId;
  }
  public String getInsuranceFlag(){
    return insuranceFlag;
  }
  public void setInsuranceFlag(String sInsuranceFlag){
    insuranceFlag = sInsuranceFlag;
  }
  public String getSendFlag(){
    return sendFlag;
  }
  public void setSendFlag(String sSendFlag){
    sendFlag = sSendFlag;
  }
  public String getType(){
    return type;
  }
  public void setType(String sType){
    type = sType;
  }
  public long getAmount(){
    return (long) amount;
  }
  public void setAmount(long iAmount){
    amount= iAmount;
  }
  public String getBuyerMessage(){
    return buyerMessage;
  }
  public void setBuyerMessage(String sBuyerMessage){
    buyerMessage = sBuyerMessage;
  }
  public String getSellerMessage(){
    return sellerMessage;
  }
  public void setSellerMessage(String sSellerMessage){
    sellerMessage = sSellerMessage;
  }
  public String getRemark(){
    return remark;
  }
  public void setRemark(String sRemark){
    remark = sRemark;
  }
public String getStatus() {
	return status;
}
public void setStatus(String status) {
	this.status = status;
}
public String getOutBizCode() {
	return outBizCode;
}
public void setOutBizCode(String outBizCode) {
	this.outBizCode = outBizCode;
}
public long getConfirmType() {
	return confirmType;
}
public void setConfirmType(long confirmType) {
	this.confirmType = confirmType;
}
public String getOrderConfirmTime() {
	return orderConfirmTime;
}
public void setOrderConfirmTime(String orderConfirmTime) {
	this.orderConfirmTime = orderConfirmTime;
}

public String getDestination() {
	return destination;
}
public void setDestination(String destination) {
	this.destination = destination;
}
public String getDeliveryOrderId() {
	return deliveryOrderId;
}
public void setDeliveryOrderId(String deliveryOrderId) {
	this.deliveryOrderId = deliveryOrderId;
}
}
